package com.itlong.cloud.property.dao;

import com.itlong.cloud.POJO.VO.operate.OperatePropertyValueDeployVO;
import com.itlong.cloud.POJO.VO.operate.OperatePropertyValueGetOneVO;
import com.itlong.cloud.POJO.VO.property.PropertyValueServerDeployVO;
import com.itlong.cloud.POJO.VO.property.PropertyValueServerGetOneVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
 * <desc>
 *      物业-物业增值数据访问接口
 * </desc>
 *
 * @createDate 2019/05/29
 */
@Mapper
@Repository
public interface IPropertyValueServerDao {
    /**
     * <desc>
     *      获取单个对象
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2019/05/29
     */
    PropertyValueServerGetOneVO getOne(@Param("projectId") String projectId);

    /**
     * <desc>
     *      获取物业增值配置集合
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2019/05/29
     */
    List<PropertyValueServerDeployVO> getDeploys(@Param("projectId") String projectId);

    /**
     * <desc>
     *      修改物业增值配置
     * </desc>
     *
     * @param params 数据参数
     * @return
     * @author Jiaqi.X
     * @createDate 2017/09/27
     */
    Integer update(Map<String,Object> params);

    /**
     * <desc>
     *      获取配置id
     * </desc>
     *
     * @param propertyValueId
     * @param level
     * @return
     * @author Jiaqi.X
     * @createDate 2019/05/30
     */
    String getPropertyValueDeployIdByModuleId(@Param("propertyValueId") String propertyValueId,@Param("level") Integer level);
}
